﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ObserverPattern
{
    public class Stock : Subject
    {
        public Stock() : base()
        {
            Name = "Std";
        }
        public string Name { get;  set; }
        public double Value { get; set; }

        override public void Notify()
        {
            foreach (IObserver observer in observers)
            {
                observer.Update(this as Stock);
            }
        }
       
    }
}
